import * as React from 'react';

export function Image({ src, width, height, align, margin }) {
  return (
    <div>
      <div className="imgDiv">
        <img src={src} className="img" />
      </div>
      <style jsx>{`
        .imgDiv {
          text-align: ${align};
          width: 100%;
          margin-top: ${margin};
        }
        .img {
          width: ${width};
          height: ${height};
        }
      `}</style>
    </div>
  );
}
